package com.school.movie;

import com.school.movie.service.MovieService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cglib.core.DebuggingClassWriter;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.EnableLoadTimeWeaving;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

import javax.annotation.PostConstruct;

/**
 * @author zhaoren
 */
@SpringBootApplication
@MapperScan("com.school.movie.dao")
//@EnableTransactionManagement
//@EnableCaching
//@EnableScheduling
//@EnableAsync
//@EnableLoadTimeWeaving
//@EnableMBeanExport
public class MovieApplication {

    public static void main(String[] args) {
        setupDebugClassProxyConfig();
        SpringApplication.run(MovieApplication.class, args);
    }

    private static void setupDebugClassProxyConfig() {
        System.getProperties().put("sun.misc.ProxyGenerator.saveGeneratedFiles", "true");
        System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "D:\\project\\movie\\target\\cglibProxyClass\\");
    }

}
